package top.lishuoboy.hutool.core.lang;

import cn.hutool.core.lang.Console;
import lombok.SneakyThrows;

import java.util.concurrent.TimeUnit;

public class ConsoleTest {
    @SneakyThrows
    public static void main(String[] args) {
        System.out.println(Console.where());
        System.out.println(Console.lineNumber());


        for (int i = 0; i < 10; i++) {
            Console.printProgress('#', i);
            TimeUnit.MILLISECONDS.sleep(300);
        }

        System.out.println();

        for (int i = 0; i < 10; i++) {
            Console.printProgress('=', 100, i/100.00);
            TimeUnit.MILLISECONDS.sleep(300);
        }

        // 等待用户输入
//        System.out.println(Console.input());
    }
}
